<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/WEB-INF/template/crud/view.xhtml">
        <ui:param name="MB" value="#{contaController}"/>
        <ui:param name="OPERACAO" value="Visualizar"/>
        <ui:define name="view">
            <div class="span12">
                <div class="control-group">
                    <label class="control-label" for="idCta"><strong>ID</strong></label>
                    <div class="controls" id="idCat"> <span>#{MB.selected.idCta}</span></div>
                </div>
                
                <div class="control-group">
                    <label class="control-label" for="ctaDescricao"><strong>Descrição</strong></label>
                    <div class="controls" id="ctaDescricao"> <span>#{MB.selected.ctaDescricao}</span></div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="categoria"><strong>Categoria</strong></label>
                    <div class="controls" id="categoria"> <span>#{MB.selected.categoria.catDescricao}</span></div>
                </div>
                <h:panelGroup rendered="#{MB.selected.categoria.catTipo eq 'C'}" >
                    <div class="control-group">
                        <label class="control-label" for="ctaDataInicial"><strong>Data Inicial</strong></label>
                        <div class="controls" id="ctaDataInicial">
                            <span><h:outputText value="#{MB.selected.ctaDataInicial}"><f:convertDateTime pattern="dd/MM/yyyy" type="date"/></h:outputText></span></div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="ctaSaldoInicial"><strong>Saldo Inicial</strong></label>
                        <div class="controls" id="ctaSaldoInicial"> 
                            <span><h:outputText value="#{MB.selected.ctaSaldoInicial}"><f:convertNumber pattern="#,##0.00" /></h:outputText></span>
                        </div>
                    </div>
                </h:panelGroup>
            </div>
        </ui:define>
    </ui:composition>
</html>
